package com.hjm.project.terminal.library.service;

import com.hjm.project.terminal.library.domain.TerminalLibrary;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * 终端库Service接口
 * 
 * @author LOVE
 * @date 2020-11-26
 */
public interface ITerminalLibraryService 
{
    /**
     * 查询终端库
     * 
     * @param id 终端库ID
     * @return 终端库
     */
    public TerminalLibrary selectTerminalLibraryById(Long id);

    /**
     * 查询终端库
     *
     * @param sn 终端号码
     * @return 终端库
     */
    public TerminalLibrary selectTerminalLibraryBySn(String sn);

    /**
     * 查询终端库列表
     * 
     * @param terminalLibrary 终端库
     * @return 终端库集合
     */
    public List<TerminalLibrary> selectTerminalLibraryList(TerminalLibrary terminalLibrary);

    /**
     * 新增终端库
     * 
     * @param terminalLibrary 终端库
     * @return 结果
     */
    public int insertTerminalLibrary(TerminalLibrary terminalLibrary);

    /**
     * 修改终端库
     * 
     * @param terminalLibrary 终端库
     * @return 结果
     */
    public int updateTerminalLibrary(TerminalLibrary terminalLibrary);

    /**
     * 批量删除终端库
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTerminalLibraryByIds(String ids);

    /**
     * 删除终端库信息
     * 
     * @param id 终端库ID
     * @return 结果
     */
    public int deleteTerminalLibraryById(Long id);

    public Map<String, String> getKeyFile(String manuNum,Integer count);

    public String getPosNo();

    public Map<String, String> addTerminal_library(File file, Map para);
}
